<?
	$database='daokiemvotinh';
mysql_connect("127.0.0.1","daokiemvotinh","xmxOwiq7Bk") or die(mysql_error());
mysql_select_db($database);
$check2=mysql_query("Select * from account where email = 'kamtuan@gmail.com'");
if(mysql_num_rows($check2) == 0)
			{
				echo 'ton tai';
			}
			else
			echo 'ko ton tai';
?>
<div class="singup">
  <div class="tabbed_area2">
    <ul class="tabs2">
      <li><a href="#" title="content_1" class="tab">Đăng ký</a></li>
      <li><a href="#" title="content_2" class="tab">Đăng nhập</a></li>
      <li><a href="#" title="content_3" class="tab last">Quên mật khẩu</a></li>
    </ul>
    <div id="content_1" class="content2">
      <form method="post" action="<?php echo $FullUrl ?>/index.php?do=member&act=regis&lg=<?=$lg?>">
        <h1>Đăng Ký Thành Viên</h1>
        <div class="row_reg">
          <label><span>Tên đăng nhập</span></label>
          <input type="text" name="username" id="username"/>
        </div>
        <br/>
        <div class="row_reg">
          <label><span>Mật khẩu</span> </label>
          <input type="password" name="password" id="password"/>
        </div>
        <br/>
        <div class="row_reg">
          <label><span>Email</span> </label>
          <input type="text" name="email" id="email"/>
        </div>
        <br/>
        <div class="row_reg">
          <?php Template::UserControlTPL('Captcha'); ?>
        </div>
        <br/>
        <button type="submit" class="reg"><span>Đăng ký</span></button>
      </form>
    </div>
    <div id="content_2" class="content2">
      <form method="post" action="<?php echo $FullUrl ?>/index.php?do=member&act=loginsm&lg=<?=$lg?>">
        <h1>Đăng nhập</h1>
        <div class="row_reg">
          <label><span>Tên đăng nhập</span></label>
          <input type="text" name="username" id="username"/>
        </div>
        <br/>
        <div class="row_reg">
          <label><span>Mật khẩu</span> </label>
          <input type="password" name="password" id="password"/>
        </div>
        <br/>
        <button type="submit" class="reg"><span>Đăng nhập</span></button>
      </form>
    </div>
    <div id="content_3" class="content2">
      <form method="post" action="<?php echo $FullUrl ?>/index.php?do=member&act=resetpassword&lg=<?=$lg?>">
        <h1>Quên mật khẩu</h1>
        <div class="row_reg">
          <label><span>Tên đăng nhập</span></label>
          <input type="text" name="username" id="username"/>
        </div>
        <br/>
        <div class="row_reg">
          <label><span>Email</span> </label>
          <input type="text" name="email" id="email"/>
        </div>
        <br/>
        <button type="submit" class="reg"><span>Gửi lại</span></button>
      </form>
    </div>
  </div>
</div>